<?php
class SupplydemandModel extends Model{
	public function add_supplydemand($data){
		$data['time_update'] 	= time();
		return M('supplydemand_type','','DB_MEETING')->add($data);
	}
	public function del_act($data){
		return M('supplydemand_type' , '' , 'DB_MEETING')->where('type_id='.$data['type_id'])->delete();
	}
	public function upt($data){
		return M('supplydemand_type' , '' , 'DB_MEETING')->where('type_id='.$data['type_id'])->save($data);
	}
}
?>